package com.amoby.main.service;

import com.amoby.base.common.Pager;
import com.amoby.main.entity.Channel;

/**
 * @desc:渠道service
 * @author Lasing 2016-6-7 上午10:35:26
 * @version V1.0
 */
public interface ChannelService {

    Channel getChannelByUserId(Integer userId);

    Pager query(Pager pager);

    int add(Channel channel);

    int upd(Channel channel);

    int reset_pwd(Long id, Integer userId);

    int del(Long id, Integer userId);

    int checkUserNameById(String username, Long id);

    Channel getChannelByChannelName(String channelName); //根据渠道名称查询渠道

    int checkChannelName(String channelName, Long id);
    

}
